package com.framework.loippi.controller.admin;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.framework.loippi.controller.GenericController;
import com.framework.loippi.utils.cpu.Server;


/**
 * 服务器监控
 * 
 * @author wcj
 */
@Controller("cPUServerController")
@RequestMapping("/admin/monitor")
public class CPUServerController extends GenericController
{

    @RequestMapping(value = "/server", method = RequestMethod.GET)
    public String server(ModelMap model) throws Exception
    {
        Server server = new Server();
        server.copyTo();
        model.addAttribute("server", server);
        return "/admin/cpu/server";
    }
}
